﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using ESOL.Common.Entity;

namespace ESOL.WinUI.Sales
{
    public partial class frmPrintFormSalesQuoteOrder : BaseForm.frmBasePrintForm
    {
        private SalesQuoteOrderEntity salesQuoteOrder;
        public frmPrintFormSalesQuoteOrder(SalesQuoteOrderEntity entity)
        {
            InitializeComponent();
            salesQuoteOrder = entity;
        }

        protected override void OnShown(EventArgs e)
        {
            base.OnShown(e);
            frmPrintTemplateSalesQuoteOrder fXtraReport = new frmPrintTemplateSalesQuoteOrder(salesQuoteOrder);
            printControl1.PrintingSystem = fXtraReport.PrintingSystem;
            fXtraReport.CreateDocument();
        }
    }
}
